const filters = {
	formatDate(timestamp) {
		var date = new Date(timestamp)
		var year = date.getFullYear()
		var month = ("0" + (date.getMonth() + 1)).slice(-2)
		var sdate = ("0" + date.getDate()).slice(-2)
		var hour = ("0" + date.getHours()).slice(-2)
		var minute = ("0" + date.getMinutes()).slice(-2)
		var second = ("0" + date.getSeconds()).slice(-2)
		var result = year + "-" + month + "-" + sdate + " " + hour + ":" + minute + ":" + second;
		// var result = month + "月" + sdate + "日 " + hour + ":" + minute //+ ":" + second;
		return result
	}
};
export default filters;